package com.mobile.challenge.api;

import com.mobile.challenge.bean.BaseBean;
import com.mobile.challenge.bean.TrackingBean;

import io.reactivex.Observable;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @Author Touge
 * @Date 2020/11/3 15:06
 * @Description 签到接口
 */
public interface SignInService {

    /**
     * userId
     * status
     * date
     */
    @POST("tracking/add")
    Observable<BaseBean<TrackingBean>> signIn(
            @Query("userId") String userId,
            @Query("status") String status,
            @Query("date") String date
    );

    @POST("tracking/update")
    Observable<BaseBean<TrackingBean>> updateSignIn(
            @Query("id") int id,
            @Query("status") String status
    );

}
